package cn.saddyfire.pattern.flyweight.jdk;

/**
 * @author Dee
 * @date 2024/2/4
 * <p>Description:
 */
public class IntegerDemo {

    public static void main(String[] args) {
        Integer i1 = 127;
        Integer i2 = 127;

        System.out.println("i1 i2 是否为同一个对象: " + (i1 == i2));

        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println("i3 i4 是否为同一个对象: " + (i3 == i4));
    }












}
